//
//  moreRemarkCell.m
//  Focus
//
//  Created by dlios on 14-10-29.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "moreRemarkCell.h"

@implementation moreRemarkCell
-(void)dealloc{
    [_autherIcon release];
    [_authername release];
    [_content release];
    [_time release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        UIImageView *autherIcon = [[UIImageView alloc]initWithFrame:CGRectZero];
        self.autherIcon = autherIcon;
        [autherIcon release];
        [self.contentView addSubview:self.autherIcon];
        
        UILabel *authername = [[UILabel alloc]initWithFrame:CGRectZero];
        self.authername = authername;
        [authername release];
        [self.contentView addSubview:self.authername];
       
        UILabel *content = [[UILabel alloc]initWithFrame:CGRectZero];
        self.content = content;
        [content release];
        [self.contentView addSubview:self.content];
        
        UILabel *time = [[UILabel alloc]initWithFrame:CGRectZero];
        self.time = time;
        [time release];
        [self.contentView addSubview:self.time];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.autherIcon.frame = CGRectMake(20, 30, 40, 40);
    self.autherIcon.layer.cornerRadius = 20;
    self.authername.frame = CGRectMake(70, 30, 100, 20);
    self.authername.numberOfLines = 10;
    self.authername.font = [UIFont systemFontOfSize:14];
    self.time.frame = CGRectMake(70, 60, 60, 25);
    self.time.numberOfLines = 10;
    self.time.font = [UIFont systemFontOfSize:14];
    self.content.frame = CGRectMake(70, 85, 200, 60);
    self.content.font = [UIFont systemFontOfSize:14];
    self.content.numberOfLines = 10;
    //自适应高度
    //    [self.content sizeToFit];
    
    
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
